package cn.meng.base.service;

import cn.meng.base.vo.BusinessException;
import cn.meng.base.vo.SalaryQueryRequest;
import cn.meng.base.vo.SalaryVO;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletResponse;

/**
 * @author liululu
 * @description 薪酬管理
 * @date 2021-08-20 10:28
 **/
public interface SalaryManageService{

    /**
     * 新增薪酬信息
     * @param salaryVO
     * @return
     */
    boolean insertSalary(SalaryVO salaryVO) throws BusinessException;

    /**
     * 修改薪酬信息
     * @param salaryVO
     * @return
     */
    boolean updateSalary(SalaryVO salaryVO);

    /**
     * 删除薪酬信息
     * @param salaryVO
     * @return
     */
    boolean deleteSalary(SalaryVO salaryVO);

    /**
     * 条件查询薪酬信息
     * @param pageNum,pageSize,request
     * @return
     */
    PageInfo<SalaryVO> selectByPage(Integer pageNum, Integer pageSize, SalaryQueryRequest request);

    /**
     * 导出薪酬信息Excel模板
     * @param
     * @return
     */
    void exportTemplate(HttpServletResponse response, SalaryVO salaryVO) throws BusinessException;
}
